<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

function mns_product_url(){
    return base_url(SHOP_FOLDER . PRODUCT_SLUG) . config_item('url_suffix');
}
function mns_product_paging_url()
{
    return base_url(SHOP_FOLDER . PRODUCT_SLUG . '/trang');
}
function mns_product_search_paging_url(){
    return base_url(SHOP_FOLDER . PRODUCT_SLUG . '/tim-kiem/trang');
}
function mns_product_single_url($slug){
    return base_url(SHOP_FOLDER . PRODUCT_SLUG . '/' . $slug) . config_item('url_suffix');
}

function mns_category_url(){
    return base_url(SHOP_FOLDER . CATEGORY_SLUG) . config_item('url_suffix');
}
function mns_category_single_url($slug){
    return base_url(SHOP_FOLDER . CATEGORY_SLUG . '/' . $slug) . config_item('url_suffix');
}

function mns_order_paging_url(){
    return base_url(SHOP_FOLDER . ORDER_SLUG . '/trang');
}
function mns_order_single_url($id){
    return base_url(SHOP_FOLDER . ORDER_SLUG . '/hoa-don-'.$id) . config_item('url_suffix');
}
function mns_order_search_url(){
    return base_url(SHOP_FOLDER . ORDER_SLUG . '/tim-kiem/trang');
}

function mns_rao_vat_paging_url(){
    return base_url(SHOP_FOLDER . RAOVAT_SLUG . '/trang');
}
function mns_rao_vat_search_paging_url(){
    return base_url(SHOP_FOLDER . RAOVAT_SLUG . '/tim-kiem/trang');
}
function mns_raovat_single_url($slug){
    return base_url(SHOP_FOLDER . RAOVAT_SLUG . '/'.$slug) . config_item('url_suffix');
}

function mns_quang_cao_paging_url(){
    return base_url(SHOP_FOLDER . ADVERTISE_SLUG . '/trang');
}
function mns_quang_cao_single_url($slug){
    return base_url(SHOP_FOLDER . ADVERTISE_SLUG . '/'.$slug) . config_item('url_suffix');
}

?>